home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 8 / FM Towns Free Software Collection 8.iso / t_os / artemis / artsrc2 / grpscrzm.c < prev    next >
C/C++ Source or Header  |  1994-06-01  |  644b  |  25 lines

  1. /*
  2.     grpscrzm.c
  3. */
  4.  
  5. #include <ryosuke.h>
  6. #include <usrlib.h>
  7.  
  8. extern    char    *EGB_work;
  9.  
  10. void    grp_scrZoom( int xrate, int yrate )
  11.     {
  12.     static struct { int x,y } resolution[] =
  13.         { { 640,400 },  { 640,200 }, { 640,480 }, { 640,400 },
  14.           { 256,256 },  { 256,256 }, { 256,240 }, { 256,240 },
  15.           { 360,240 },  { 320,240 }, { 320,240 },
  16.           { 640,480 },  { 640,400 }, { 720,480 },
  17.           { 320,480 },  { 320,480 }, { 512,480 }, { 512,480 } };
  18.     int mode;
  19.     EGB_displayStart( EGB_work, 2, xrate, yrate );
  20.     mode = grp_getMode() - 1;
  21.     EGB_displayStart( EGB_work, 3, resolution[mode].x, resolution[mode].y );
  22.     }
  23.  
  24. /* end of grpscrzm.c */
  25.